package org.shushan.cloud.transaction.sample.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import org.shushan.framework.core.entity.BaseEn;

/**
 * @author zhigang.li
 * @date 2022/6/19
 */
@Getter
@Setter
@TableName("t_role")
public class RoleEntity extends BaseEn<String> {

    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    String id;

    @TableField("role_name")
    String roleName;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String s) {
        this.id = s;
    }


}
